package com.ztomorrow.ying_cun_plus.auth;

import com.ztomorrow.ying_cun_plus.exception.BusinessException;
import com.ztomorrow.ying_cun_plus.service.impl.UserServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class FrontAuthStrategy implements AuthStrategy {

    private final UserServiceImpl userService;

    @Override
    public void auth(String token, String requestUri) throws BusinessException {
        authSSO(userService, token);
    }
}
